package co.edu.udea.iw.client.server;

import java.util.List;

import co.edu.udea.iw.dto.Cliente;
import co.edu.udea.iw.shared.ClienteListado;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("ClienteService")
public interface ClienteService extends RemoteService {
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static ClienteServiceAsync instance;
		public static ClienteServiceAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(ClienteService.class);
			}
			return instance;
		}
	}
	
	public void guardarCliente(String cedula, String nombres, String apellidos, String correo);
	
	public List<ClienteListado> obtenerClientes();
	
	public void eliminarCliente(String cedula);
}
